package com.voltmao.persistent.mapper;

import org.apache.ibatis.annotations.Param;
import com.voltmao.persistent.model.IntentUser;
import com.voltmao.persistent.model.IntentUserCriteria;

import java.util.List;
import java.util.Map;

public interface IntentUserMapper {
    int countByExample(IntentUserCriteria example);

    int deleteByExample(IntentUserCriteria example);

    int deleteByPrimaryKey(String dataId);

    int insert(IntentUser record);

    int insertSelective(IntentUser record);

    List<IntentUser> selectByExample(IntentUserCriteria example);

    IntentUser selectByPrimaryKey(String dataId);

    int updateByExampleSelective(@Param("record") IntentUser record, @Param("example") IntentUserCriteria example);

    int updateByExample(@Param("record") IntentUser record, @Param("example") IntentUserCriteria example);

    int updateByPrimaryKeySelective(IntentUser record);

    int updateByPrimaryKey(IntentUser record);

    IntentUser selectByExampleForOne(IntentUserCriteria example);

    Map<String, Object> selectMapByPrimaryKey(String dataId);

    Map<String, Object> selectMapByExampleForOne(IntentUserCriteria example);

    List<Map<String, Object>> selectMapByExample(IntentUserCriteria example);

    /**
     * 获取未分配的意向渠道列表
     * @return
     */
    List<Map<String, Object>> selectUnAssign(Map<String, Object> params);
    int countUnAssign(Map<String, Object> params);
    /**
     * 更新意向渠道状态
     */
    int updateYxyhzt(@Param("intentIdArr") List<String> intentIdArr, @Param("status") String status);
}